#include "formqd.h"
#include "ui_formqd.h"

#include <QDebug>

FormQD::FormQD(QWidget *parent) :
        QWidget(parent),
        ui(new Ui::FormQD)
{
    ui->setupUi(this);
    setWindowFlags(windowFlags() | Qt::Dialog);
    setWindowModality(Qt::ApplicationModal);
    setAttribute(Qt::WA_DeleteOnClose);

    qDebug() << "[FormQD] \t Constructor";
}

FormQD::~FormQD()
{
    delete ui;

    qDebug() << "[FormQD] \t Destructor";
}

void FormQD::on_pushButtonQDReturn_clicked()
{
    this->close();
}

void FormQD::on_pushButtonQDDiagnosisInfo_clicked()
{
    QDDiagnosisInfoWin = new FormQDDiagnosisInfo(this);
    QDDiagnosisInfoWin->show();
}

void FormQD::on_pushButtonQDServerInfo_clicked()
{
    QDServerInfoWin = new FormDQServerInfo(this);
    QDServerInfoWin->show();
}

void FormQD::on_pushButtonQDTest_clicked()
{
    QDTestWin = new FormQDTest(this);
    QDTestWin->show();
}
